package dao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class JPAUtil {
    private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("SPIPU");

    public static EntityManagerFactory getEntityManagerFactory() {
        return emf;
    }

    public static void setEmf(EntityManagerFactory emf) {
        JPAUtil.emf = emf;
    }
}